GXGetViewPortClip
You can use theGXGetViewPortClip
function to examine the clip property of a view port object.
gxShape GXGetViewPortClip(gxViewPort source);
source
- A reference to the view port whose clip you wish to examine.
- function result
- A reference to a newly created shape object that is a copy of the source view port's clip.
DESCRIPTION
TheGXGetViewPortClip
function returns a shape object whose geometry defines the clip associated with the view port. The function returnsnil
if there is no clip. The clip shape is a copy of the view port's clip; changing this shape does not change the view port's clip.SPECIAL CONSIDERATIONS
If no error occurs, theGXGetViewPortClip
function creates a shape object; you are responsible for disposing of that object when you no longer need it.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory invalid_viewPort_reference SEE ALSO
For an example of the use of this function, see Listing 7-3 on page 7-45.To set the view port's clip, use the
GXSetViewPortClip
function, described next.